<?php

class Typequestions extends Onecore_Controller
{

    public function __construct()
    {
        parent::__construct();
        $this->load->model("elem_question_types_model");
        $this->_moduleName = utf8_encode("Modulo modulos_model");
        $this->_moduleDescription = utf8_encode("Description") . $this->_moduleName;
        $this->_modelInstance = $this->elem_question_types_model;
    }
    
    public function loadList(){
        $order = array();
        $conditions = new stdClass();
        $conditions->start = $this->input->get('start');
        $conditions->limit = $this->input->get('limit');
        
        $order['field'] = 'name';
        $order['direction'] = 'ASC';
        
        $data = $this->_modelInstance->loadList($order,null,array());
        
        $res = array(
            "success" => true,
            "results" => $data['results'],
            "rows" => $data['items']
        );
        $this->layout->printLike(json_encode($res), "json");
    }
    
}

